home *** CD-ROM | disk | FTP | other *** search
- #ifdef VCSTR
- static char MACROSH[]="@(#) macros.h 1.0 91/01/13 16:09:26"; /*sccsid*/
- #endif
- #ifdef DOCUMENTATION
- /******************************* DOCZ Header *********************************
- .MODULE hibyte
- .LIBRARY csub
- .TYPE macro
- .APPLICATION conversion
- .SYSTEM msdos-s
- .SYSTEM msdos-l
- .SYSTEM vms
- .SYSTEM unix
- .AUTHOR Software Toolz
- .LANGUAGE C
- .DESCRIPTION
- Extract the high byte of a short
- .ARGUMENTS
- HIBYTE(u)
- unsigned short u; /* (r) the shortword to extract from */
- .NARRATIVE
- This macro returns the high-byte of an unsigned short (16 bits) as
- a byte (8 bits).
- .RETURNS
- The high byte of "u" as a byte.
- .INCLUDES
- csub.h
- csubmac.h
- .SEE_ALSO
- LOBYTE()
- .NOTICE
- Copyright 1989 Software Toolz, Inc. - Atlanta, Georgia
-
- All rights reserved worldwide. This program may not be reproduced,
- transmitted, transcribed, stored in a retrieval system or translated in
- any human or computer language, in any form without the express written
- permission of Software Toolz, Inc.
- .ENDOC END DOCUMENTATION
- *****************************************************************************/
- #endif /* DOCUMENTATION */
- #ifndef HIBYTE
- #define HIBYTE(u) (((u)>>8)&0x00FF) /* High byte of short */
- #endif
-